// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'


// 1.导入路由包
import router from './router'
import VueRouter from 'vue-router'


// 导入axios
import axios from 'axios'
Vue.prototype.$axios = axios
// 全局配置
axios.defaults.baseURL = 'http://www.liulongbin.top:3005';
// 提交时候表单的数据格式
axios.defaults.crossDomain = true;

Vue.use(VueRouter)


// 导入vuex
import Vuex from 'vuex'
Vue.use( Vuex );
const store = new Vuex.Store({
  state:{},
  mutations:{}
})




import mui from '../static/dist/js/mui.js'
Vue.prototype.mui = mui

// 导入mui的css样式
import "../static/dist/css/mui.min.css"
import "../static/dist/css/icons-extra.css"


// 导入mint的css样式
import "mint-ui/lib/style.css"

// 引入mint
import Mint from 'mint-ui'
Vue.use(Mint)

// 引入moment.js
import moment from 'moment'

// 定义全局过滤器
// 时间
Vue.filter('dataFormat',function(){
  return moment().format('YYYY MM DD hh:mm:ss');
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
